﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using xplang.abstractions;
using xplang.run;
using System.Diagnostics;

namespace xplang.expression
{
  [DebuggerDisplay("(const){value}")]
  public class Const : Expression
  {
    public Const(Value value)
      : base(value.type)
    {
      this.value = value;
    }

    public readonly Value value;

    public override Value doIt(Value[] heap, ref FlowState state)
    {
      return value;
    }
  }
}
